/*
 * Copyright © 2022 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */
package cn.rxmind.dlicense.use.example;

import cn.hutool.core.io.FileUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.function.Supplier;

/**
 * 证书相关配置
 *
 * @author renxin
 * @version 1.0
 * @date 2022/3/27 17:11
 */
@Configuration
public class LicenseConfiguration {

    @Bean
    public Supplier<byte[]> licenseBytesReader(){

        return () -> FileUtil.readBytes("classpath:license/license.lic");
    }

}
